Access rtfField / reset textbox

1.) Actually is my problem to get access upon the richField? Further i want to input the text in the exBox

DBE rtfField1 = richField(exBox, "name: ", "", 20, false)
DBE rtfField2 = richField(exBox, "object:", "", 20, false)

t1 = text(exBox,"",results, 500, 500, false)

My idea was to use "rtfField1" and "rtfField2" as an normally varible but it dont work.

2.) Is it possible after i have greate the exBox
to delete the whole text like a resetfunction
t1 = text(exBox,"",results, 500, 500, false)
.....
...
...
....
...
....
some example will be greate!
Thanks for help
SystemAdmin - Wed Sep 01 02:51:53 EDT 2010

Re: Access rtfField / reset textbox
SystemAdmin - Wed Sep 01 07:29:24 EDT 2010

Problem 1.

This is actually my code:

DBE rtfField1 = richField(exBox, "Name: ", "", 20, false)
DBE rtfField2 = richField(exBox, "Object:", "", 20, false)
void rtff(DBE) {

string a1 = (string get (rtfField1))
string a2 = (string get (rtfField2))
print a1
print a2

}

rtff = button(exBox, "Ok", rtff)

Dxl output:

{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang1031\f0\fs20 *Adam*\par
}
{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang1031\f0\fs20 *Number1*\par
}
I need only the "bold" text. Please Help

Re: Access rtfField / reset textbox
Peter_Albert - Wed Sep 01 07:57:19 EDT 2010

SystemAdmin - Wed Sep 01 07:29:24 EDT 2010
Problem 1.

This is actually my code:

DBE rtfField1 = richField(exBox, "Name: ", "", 20, false)
DBE rtfField2 = richField(exBox, "Object:", "", 20, false)
void rtff(DBE) {

string a1 = (string get (rtfField1))
string a2 = (string get (rtfField2))
print a1
print a2

}

rtff = button(exBox, "Ok", rtff)



Dxl output:

{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang1031\f0\fs20 *Adam*\par
}
{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\lang1031\f0\fs20 *Number1*\par
}
I need only the "bold" text. Please Help

The richField DBEs contain rich Text, so the "rich Text" chapters in the DXL help will be useful.

For the time being, try

for rt in a1 do {print rt.text "\n"}
for rt in a2 do {print rt.text "\n"}

instead of your "print" statements.

Regards,

Peter